

// pageAuthority 即是当前页面的权限对象
// allAuthority  所有权限的字符串
function getAuthority(pageAuthority , allAuthority){

    let strings = Object.keys(pageAuthority);

    for (let i = 0; i < strings.length; i++) {
        if (allAuthority.indexOf(strings[i]) != -1) {
            pageAuthority[strings[i]] = "accessible";
        }
    }

    return pageAuthority;


}